import java.util.*;
import java.util.concurrent.*;

/**
 * Drop
 * A drop that handles multiple messages with a concurrent queue structure.
 */
public class Drop {
    // Message sent from producer
    // to consumer.
    private ConcurrentLinkedQueue<String> msgs;
    
    public Drop() {
        msgs = new ConcurrentLinkedQueue<String>();
    }
    
    public String poll() {
        return msgs.poll();
    }
    
    public String peek() {
        return msgs.peek();
    }

    public void put(String message) {
        msgs.add(message);
    }
    
    public boolean status() {
        return msgs.isEmpty();
    }
}
